package com.xbongbong.pro.domain.dao;

import com.xbongbong.pro.domain.entity.DecisionTreeEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 决策树dao
 *
 * @Author: hongxiao
 * @date: 2021-11-11 16:07
 */
@Repository
@Mapper
public interface DecisionTreeDao {
    Integer insert(DecisionTreeEntity decisionTreeEntity);

    Integer update(DecisionTreeEntity decisionTreeEntity);

    Integer deleteByKey(@Param("key") Long key, @Param("corpid") String corpid);

    DecisionTreeEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid);

    List<DecisionTreeEntity> findEntitys(@Param("param") Map<String, Object> param);

    Integer getEntitysCount(@Param("param") Map<String, Object> param);

    DecisionTreeEntity getByDataId(@Param("corpid") String corpid, @Param("businessType") Integer businessType, @Param("formId") Long formId, @Param("dataId") Long dataId);
}
